import {getCreateNative,getQueryPayStatus} from "@/api/payment";

export default {
	namespaced:true,
	state:{
		paymentInfo:{}
	},
	mutations:{
		UP_PAYMENTINFO(state,payload){
			state.paymentInfo = payload;
		}
	},
	actions:{
		async getCreateNativeAsync({commit},orderId){
			const res = await getCreateNative(orderId);
			commit("UP_PAYMENTINFO",res.data);
		},

    async getQueryPayStatusAsync(context,orderId){
      const res = await getQueryPayStatus(orderId);
      return res;
  },
	}
}